<?php

require_once 'common/conn.php';
if (isset($_GET['flashcode'])) {
    $flashcode = $_GET['flashcode'];
} else {
    $flashcode = $_POST['flashcode'];
}
if ($flashcode == "yanswer") {
    $flashcode = "P5C099";
}
if (isset($flashcode)) {
    $sql = "UPDATE t_product SET downloadtimes = downloadtimes + 1 WHERE flashcode = '" . $flashcode . "'";
    $db = new DBC();
    $db->execute($sql);
}
?>
